package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AspectDemoController {
    @RequestMapping("/test1")
    public String test1() {
        return "测试一，无异常版本";
    }
    @RequestMapping("/test2")
    public String test2() {
        int n = 10 / 0;
        return "测试二，有异常版本";
    }
}
